<template>
    <div>

    </div>
</template>

<script>
export default {
    data() {
        return {

        };
    },
    created() {

    },

    mounted(){
        /**
 * 参考源作品地址: https://gallery.echartsjs.com/editor.html?c=xntS7o_3ac
 * 2020-2-18: 新增symbol判断函数
*/

//供水管道: 图标
var iconGD = "image://"
//城市绿地: 图标
var iconLD = "image://"
//天燃气: 图标
var iconRQ = "image://"
//井盖: 图标
var iconJG = "image://"
//垃圾站: 图标
var iconLJZ = "image://"
//监督人员(男): 图标
var iconJD1 = "image://"
//监督人员(女): 图标
var iconJD2 = "image://"
//洒水车
var iconSS = "image://"
var data = 
{
	"type": "FeatureCollection",
	"features": [
		{
			"type":"Feature", 
			"properties": {
				"adcode": 340102,
				"name": "瑶海区",
				"center": [117.321915,31.875362],
				"centroid": [117.36664,31.941248],
				"childrenNum": 0,
				"level": "district",
				"subFeatureIndex": 0,
				"acroutes": [100000,340000,340100],
				"parent": {"adcode":340100}
			},
			"geometry": {
				"type": "MultiPolygon",
				"coordinates": [[[
					[117.30661,31.86836],
					[117.30656,31.873838],
					[117.301094,31.87835],
					[117.30132,31.880564],
					[117.29936,31.883299],
					[117.29689,31.884745],
					[117.29747,31.886496],
					[117.29691,31.890997],
					[117.29482,31.89716],
					[117.29506,31.8989],
					[117.29947,31.902376],
					[117.30498,31.905172],
					[117.30602,31.906864],
					[117.30428,31.908451],
					[117.30501,31.910175],
					[117.30165,31.911816],
					[117.300865,31.915684],
					[117.30109,31.920338],
					[117.3061,31.923916],
					[117.30529,31.927591],
					[117.30333,31.930445],
					[117.30304,31.937443],
					[117.300575,31.938688],
					[117.30199,31.94126],
					[117.30412,31.94214],
					[117.30291,31.944439],
					[117.30529,31.946125],
					[117.3077,31.954876],
					[117.30855,31.964481],
					[117.30957,31.966381],
					[117.30992,31.97089],
					[117.31318,31.975128],
					[117.31567,31.976854],
					[117.316956,31.981989],
					[117.31557,31.986073],
					[117.31573,31.991167],
					[117.31658,31.995253],
					[117.32137,31.999084],
					[117.32239,32.002213],
					[117.3197,32.007206],
					[117.310776,32.01137],
					[117.30725,32.01497],
					[117.30991,32.0194],
					[117.31014,32.024525],
					[117.30954,32.028843],
					[117.31178,32.03628],
					[117.319214,32.03976],
					[117.32108,32.046185],
					[117.31979,32.051006],
					[117.322624,32.05351],
					[117.32283,32.05677],
					[117.32994,32.062397],
					[117.338974,32.06514],
					[117.34513,32.059036],
					[117.35427,32.05847],
					[117.36237,32.060806],
					[117.367775,32.06173],
					[117.37831,32.062805],
					[117.38345,32.06111],
					[117.39019,32.055946],
					[117.39262,32.05315],
					[117.39306,32.0493],
					[117.39772,32.04615],
					[117.395546,32.042835],
					[117.39149,32.043022],
					[117.384415,32.040226],
					[117.381676,32.035683],
					[117.38023,32.019634],
					[117.38158,32.016865],
					[117.37982,32.014103],
					[117.37879,32.01018],
					[117.37914,32.00662],
					[117.38137,32.004265],
					[117.38233,31.999226],
					[117.38018,31.994383],
					[117.38689,31.989798],
					[117.38655,31.987541],
					[117.3887,31.982273],
					[117.38976,31.983915],
					[117.40628,31.990564],
					[117.41576,31.98571],
					[117.42676,31.979315],
					[117.431564,31.977222],
					[117.439445,31.978601],
					[117.44389,31.976254],
					[117.44663,31.97579],
					[117.450905,31.97833],
					[117.45278,31.970425],
					[117.45003,31.968761],
					[117.452774,31.959478],
					[117.45772,31.944506],
					[117.459595,31.937971],
					[117.45663,31.935114],
					[117.45448,31.931498],
					[117.45218,31.930079],
					[117.44859,31.929794],
					[117.44329,31.924677],
					[117.43952,31.919388],
					[117.4349,31.915844],
					[117.43456,31.912342],
					[117.42946,31.907328],
					[117.42766,31.89985],
					[117.417,31.905973],
					[117.41413,31.915644],
					[117.41215,31.915304],
					[117.41571,31.897356],
					[117.41603,31.892447],
					[117.41455,31.887299],
					[117.411,31.884604],
					[117.4127,31.88064],
					[117.418686,31.879078],
					[117.420616,31.876705],
					[117.41159,31.87508],
					[117.411446,31.869875],
					[117.41451,31.869078],
					[117.414665,31.870626],
					[117.41749,31.870789],
					[117.42258,31.873055],
					[117.43394,31.87263],
					[117.43669,31.866825],
					[117.43228,31.863737],
					[117.41786,31.858753],
					[117.41394,31.861277],
					[117.41119,31.866268],
					[117.406204,31.866356],
					[117.39886,31.865599],
					[117.39562,31.863867],
					[117.394165,31.855677],
					[117.39521,31.853994],
					[117.39832,31.853495],
					[117.4073,31.850931],
					[117.411125,31.846458],
					[117.41203,31.840538],
					[117.40981,31.840584],
					[117.40759,31.838335],
					[117.407364,31.835917],
					[117.40569,31.83667],
					[117.40222,31.836176],
					[117.3958,31.83767],
					[117.3928,31.837265],
					[117.39293,31.834538],
					[117.38861,31.835453],
					[117.3865,31.827501],
					[117.38643,31.822432],
					[117.381546,31.822613],
					[117.378876,31.825436],
					[117.37878,31.830206],
					[117.3766,31.832003],
					[117.3744,31.83218],
					[117.36993,31.830698],
					[117.367455,31.83088],
					[117.36301,31.834263],
					[117.35851,31.834114],
					[117.356705,31.83627],
					[117.35267,31.838871],
					[117.346634,31.840923],
					[117.34461,31.845976],
					[117.34039,31.848816],
					[117.33786,31.84926],
					[117.33397,31.85215],
					[117.33217,31.851831],
					[117.32958,31.849585],
					[117.32792,31.849508],
					[117.32333,31.852589],
					[117.31783,31.85406],
					[117.31213,31.858004],
					[117.31117,31.860153],
					[117.31205,31.864939],
					[117.31061,31.867006],
					[117.30661,31.86836]
				]]]
			}
		},
		{
			"type":"Feature", 
			"properties": {
				"adcode": 340103,
				"name": "庐阳区",
				"center": [117.29033,31.874777],
				"centroid": [117.21067,31.920946],
				"childrenNum": 0,
				"level": "district",
				"subFeatureIndex": 1,
				"acroutes": [100000,340000,340100],
				"parent": {"adcode":340100}
			},
			"geometry": {
				"type": "MultiPolygon",
				"coordinates": [[[
					[117.28312,31.859426],
					[117.28072,31.859295],
					[117.277275,31.861906],
					[117.27486,31.86526],
					[117.275055,31.867662],
					[117.27688,31.868784],
					[117.27591,31.871208],
					[117.27671,31.879269],
					[117.268425,31.876282],
					[117.26505,31.877886],
					[117.26133,31.878494],
					[117.26008,31.88017],
					[117.25425,31.880577],
					[117.25178,31.882809],
					[117.25155,31.880798],
					[117.24825,31.880825],
					[117.24597,31.884153],
					[117.243454,31.884844],
					[117.24218,31.883179],
					[117.24023,31.886145],
					[117.2378,31.884909],
					[117.239136,31.883478],
					[117.23804,31.882156],
					[117.23405,31.883385],
					[117.23409,31.885252],
					[117.236725,31.888573],
					[117.23358,31.890932],
					[117.23094,31.891073],
					[117.230034,31.888557],
					[117.221634,31.885906],
					[117.21787,31.88571],
					[117.21768,31.88205],
					[117.215225,31.881418],
					[117.21302,31.878132],
					[117.2115,31.880194],
					[117.21312,31.882519],
					[117.211655,31.884472],
					[117.20748,31.885872],
					[117.207535,31.883419],
					[117.20557,31.884085],
					[117.20337,31.877419],
					[117.20517,31.875656],
					[117.205475,31.870323],
					[117.20374,31.867908],
					[117.20296,31.864397],
					[117.2003,31.868273],
					[117.198494,31.865894],
					[117.196495,31.8657],
					[117.1937,31.868654],
					[117.196236,31.869053],
					[117.19895,31.871172],
					[117.19682,31.87148],
					[117.19966,31.87555],
					[117.19817,31.876055],
					[117.19864,31.879795],
					[117.19407,31.879597],
					[117.195335,31.881348],
					[117.193825,31.883253],
					[117.19886,31.88238],
					[117.19872,31.885323],
					[117.1963,31.890238],
					[117.19207,31.890635],
					[117.19231,31.887596],
					[117.190186,31.889076],
					[117.19011,31.89088],
					[117.18773,31.891762],
					[117.18529,31.88896],
					[117.18529,31.885382],
					[117.18349,31.884054],
					[117.1822,31.890297],
					[117.18289,31.891926],
					[117.17995,31.891861],
					[117.178246,31.894121],
					[117.17826,31.900454],
					[117.18342,31.90052],
					[117.182945,31.902517],
					[117.18506,31.903748],
					[117.18579,31.90598],
					[117.18159,31.909838],
					[117.181625,31.911453],
					[117.17868,31.914225],
					[117.17001,31.916948],
					[117.156654,31.917664],
					[117.15593,31.913448],
					[117.15721,31.912096],
					[117.16404,31.911167],
					[117.16517,31.908726],
					[117.16924,31.908329],
					[117.17374,31.904186],
					[117.1758,31.903055],
					[117.1763,31.895973],
					[117.176,31.89251],
					[117.17305,31.89224],
					[117.17083,31.888802],
					[117.171295,31.886452],
					[117.168846,31.886185],
					[117.1678,31.882956],
					[117.1659,31.884378],
					[117.166405,31.889643],
					[117.16962,31.893806],
					[117.16982,31.895323],
					[117.166145,31.897547],
					[117.1646,31.897604],
					[117.162964,31.900467],
					[117.16067,31.901281],
					[117.160706,31.903767],
					[117.15575,31.904823],
					[117.154205,31.903236],
					[117.15147,31.902859],
					[117.14799,31.897488],
					[117.14752,31.900408],
					[117.140594,31.907253],
					[117.13728,31.912342],
					[117.13114,31.916962],
					[117.1271,31.916878],
					[117.118095,31.91941],
					[117.10889,31.922724],
					[117.11041,31.924408],
					[117.10271,31.928972],
					[117.10342,31.93272],
					[117.10192,31.933043],
					[117.102036,31.93645],
					[117.09882,31.936533],
					[117.09432,31.940928],
					[117.08961,31.946272],
					[117.086655,31.947807],
					[117.083565,31.94787],
					[117.07858,31.95197],
					[117.07504,31.961998],
					[117.07398,31.96857],
					[117.075806,31.968237],
					[117.08263,31.965055],
					[117.0855,31.96312],
					[117.09304,31.962948],
					[117.09618,31.961628],
					[117.099976,31.962063],
					[117.10172,31.967299],
					[117.10537,31.97024],
					[117.109825,31.969074],
					[117.11154,31.967438],
					[117.118675,31.964205],
					[117.12405,31.963297],
					[117.13022,31.96046],
					[117.132935,31.957853],
					[117.13903,31.956028],
					[117.14592,31.952864],
					[117.14892,31.95212],
					[117.156815,31.952057],
					[117.15879,31.952543],
					[117.16932,31.958998],
					[117.17097,31.962772],
					[117.17315,31.962442],
					[117.177536,31.959187],
					[117.17937,31.9562],
					[117.18872,31.949072],
					[117.190216,31.943346],
					[117.189224,31.937044],
					[117.18984,31.933548],
					[117.19225,31.931942],
					[117.19446,31.932035],
					[117.19648,31.933588],
					[117.20047,31.939995],
					[117.20315,31.941042],
					[117.20977,31.942303],
					[117.22084,31.945717],
					[117.22692,31.948338],
					[117.23034,31.948847],
					[117.236755,31.946657],
					[117.23634,31.942665],
					[117.238716,31.94066],
					[117.244,31.938675],
					[117.246315,31.936272],
					[117.248276,31.93779],
					[117.25138,31.946058],
					[117.25407,31.955662],
					[117.25699,31.958487],
					[117.25936,31.959015],
					[117.26481,31.958023],
					[117.27489,31.961096],
					[117.27914,31.963028],
					[117.28238,31.963032],
					[117.28624,31.96091],
					[117.29262,31.954603],
					[117.29365,31.943132],
					[117.29548,31.942764],
					[117.30291,31.944439],
					[117.30412,31.94214],
					[117.30199,31.94126],
					[117.300575,31.938688],
					[117.30304,31.937443],
					[117.30333,31.930445],
					[117.30529,31.927591],
					[117.3061,31.923916],
					[117.30109,31.920338],
					[117.300865,31.915684],
					[117.30165,31.911816],
					[117.30501,31.910175],
					[117.30428,31.908451],
					[117.30602,31.906864],
					[117.30498,31.905172],
					[117.29947,31.902376],
					[117.29506,31.8989],
					[117.29482,31.89716],
					[117.29691,31.890997],
					[117.29747,31.886496],
					[117.29689,31.884745],
					[117.29936,31.883299],
					[117.30132,31.880564],
					[117.301094,31.87835],
					[117.30656,31.873838],
					[117.30661,31.86836],
					[117.30499,31.865797],
					[117.29825,31.862408],
					[117.284294,31.859423],
					[117.28312,31.859426]
				]]]
			}
		},
		{
			"type":"Feature", 
			"properties": {
				"adcode": 340104,
				"name": "蜀山区",
				"center": [117.26854,31.862011],
				"centroid": [117.06713,31.874796],
				"childrenNum": 0,
				"level": "district",
				"subFeatureIndex": 2,
				"acroutes": [100000,340000,340100],
				"parent": {"adcode":340100}
			},
			"geometry": {
				"type": "MultiPolygon",
				"coordinates": [[[
					[117.24254,31.679497],
					[117.23932,31.680973],
					[117.236115,31.685152],
					[117.23241,31.697063],
					[117.22989,31.701742],
					[117.229164,31.713919],
					[117.22788,31.718071],
					[117.2266,31.71951],
					[117.21878,31.719517],
					[117.220184,31.727932],
					[117.21289,31.729195],
					[117.204254,31.738453],
					[117.19527,31.750334],
					[117.19049,31.757898],
					[117.19335,31.76026],
					[117.19593,31.757711],
					[117.19725,31.758816],
					[117.19443,31.76136],
					[117.19935,31.76464],
					[117.204384,31.76046],
					[117.20007,31.758595],
					[117.201996,31.754972],
					[117.206696,31.758625],
					[117.205795,31.759594],
					[117.20951,31.760923],
					[117.21182,31.75914],
					[117.20896,31.756792],
					[117.21101,31.755083],
					[117.21499,31.758738],
					[117.21464,31.761696],
					[117.219246,31.766045],
					[117.2207,31.7652],
					[117.2195,31.762627],
					[117.216774,31.76023],
					[117.2243,31.75526],
					[117.229935,31.765526],
					[117.22779,31.765938],
					[117.22796,31.769587],
					[117.231415,31.768177],
					[117.23224,31.769567],
					[117.22825,31.771273],
					[117.22953,31.773384],
					[117.23304,31.771242],
					[117.23707,31.776102],
					[117.22547,31.78415],
					[117.22039,31.77832],
					[117.21873,31.77829],
					[117.21186,31.771395],
					[117.208405,31.769226],
					[117.20182,31.76686],
					[117.19408,31.761818],
					[117.18409,31.771069],
					[117.18073,31.77284],
					[117.18362,31.777205],
					[117.18403,31.779629],
					[117.18339,31.78529],
					[117.18169,31.790417],
					[117.18226,31.79173],
					[117.17966,31.794313],
					[117.18871,31.79434],
					[117.19365,31.79563],
					[117.19262,31.791454],
					[117.19699,31.788824],
					[117.19936,31.792654],
					[117.20201,31.794256],
					[117.20222,31.798],
					[117.20448,31.79778],
					[117.205635,31.794704],
					[117.20696,31.794758],
					[117.20691,31.790874],
					[117.20924,31.791214],
					[117.20851,31.79334],
					[117.21005,31.794794],
					[117.21011,31.798283],
					[117.207985,31.801893],
					[117.212105,31.80596],
					[117.21204,31.80702],
					[117.20872,31.809134],
					[117.207245,31.808855],
					[117.203995,31.811342],
					[117.20253,31.8143],
					[117.20112,31.814661],
					[117.20299,31.818285],
					[117.198555,31.820274],
					[117.197685,31.818808],
					[117.199005,31.81684],
					[117.19648,31.81691],
					[117.18558,31.82073],
					[117.17885,31.823708],
					[117.17373,31.819681],
					[117.17478,31.818846],
					[117.173645,31.81331],
					[117.16821,31.813448],
					[117.165146,31.80939],
					[117.16157,31.809738],
					[117.15989,31.811716],
					[117.165474,31.815456],
					[117.16456,31.8172],
					[117.16534,31.820784],
					[117.16216,31.822264],
					[117.159836,31.825745],
					[117.156265,31.824526],
					[117.147026,31.818888],
					[117.13664,31.810463],
					[117.12386,31.79954],
					[117.12151,31.79671],
					[117.11796,31.797052],
					[117.11435,31.795559],
					[117.10897,31.794872],
					[117.106224,31.792927],
					[117.105316,31.790947],
					[117.100006,31.789078],
					[117.09886,31.789677],
					[117.09463,31.78614],
					[117.09294,31.786587],
					[117.08983,31.783472],
					[117.08547,31.783018],
					[117.08353,31.781881],
					[117.07926,31.785074],
					[117.07136,31.78436],
					[117.06948,31.783562],
					[117.064896,31.7889],
					[117.064384,31.790884],
					[117.05481,31.79082],
					[117.05021,31.791779],
					[117.0502,31.78769],
					[117.038734,31.786785],
					[117.02821,31.787718],
					[117.02377,31.786804],
					[117.02154,31.7836],
					[117.01442,31.776508],
					[117.01176,31.775734],
					[117.00212,31.7768],
					[116.99407,31.776009],
					[116.98625,31.773458],
					[116.98369,31.773195],
					[116.97193,31.773964],
					[116.96723,31.773123],
					[116.96085,31.771112],
					[116.959236,31.772488],
					[116.96021,31.775812],
					[116.963715,31.778555],
					[116.968475,31.780516],
					[116.96776,31.782469],
					[116.96375,31.788399],
					[116.96399,31.79587],
					[116.96353,31.797338],
					[116.95895,31.79945],
					[116.95095,31.801132],
					[116.94603,31.804277],
					[116.93993,31.806534],
					[116.93657,31.804895],
					[116.93218,31.800457],
					[116.929405,31.799734],
					[116.927376,31.800827],
					[116.923706,31.80989],
					[116.921104,31.81542],
					[116.91773,31.818285],
					[116.91009,31.822672],
					[116.90785,31.829096],
					[116.90494,31.831898],
					[116.90233,31.832966],
					[116.89979,31.835913],
					[116.90016,31.838333],
					[116.91483,31.84049],
					[116.922585,31.841175],
					[116.93376,31.843956],
					[116.93667,31.845526],
					[116.93716,31.84869],
					[116.93569,31.851887],
					[116.930595,31.858534],
					[116.929565,31.863853],
					[116.934296,31.86976],
					[116.93531,31.874865],
					[116.93237,31.885757],
					[116.93678,31.891047],
					[116.93893,31.892248],
					[116.93321,31.894188],
					[116.930725,31.893553],
					[116.92685,31.890617],
					[116.91602,31.898106],
					[116.907265,31.902296],
					[116.90743,31.906553],
					[116.899086,31.913494],
					[116.899185,31.921392],
					[116.89508,31.921988],
					[116.88968,31.925295],
					[116.88542,31.927088],
					[116.88359,31.933243],
					[116.87824,31.939468],
					[116.87489,31.94178],
					[116.87289,31.944702],
					[116.86887,31.947132],
					[116.86643,31.952412],
					[116.86336,31.954939],
					[116.8623,31.96416],
					[116.865814,31.966703],
					[116.86856,31.972458],
					[116.87182,31.975664],
					[116.87882,31.978645],
					[116.88557,31.980665],
					[116.89745,31.9814],
					[116.9034,31.98264],
					[116.91099,31.983372],
					[116.92757,31.98637],
					[116.944016,31.995148],
					[116.93575,32.004433],
					[116.93549,32.01204],
					[116.930336,32.01928],
					[116.930786,32.02114],
					[116.93636,32.023716],
					[116.93932,32.027836],
					[116.93971,32.030094],
					[116.93775,32.036766],
					[116.93439,32.04292],
					[116.9387,32.04455],
					[116.94625,32.042404],
					[116.95059,32.03936],
					[116.95633,32.037945],
					[116.95979,32.03991],
					[116.9702,32.03551],
					[116.973015,32.034756],
					[116.97873,32.03497],
					[116.99083,32.034775],
					[116.99262,32.032978],
					[116.991745,32.026722],
					[116.992,32.020195],
					[117.00295,32.012726],
					[117.00501,32.008068],
					[117.00433,32.002674],
					[117.00296,31.999762],
					[117.00866,32.00073],
					[117.01392,32.004276],
					[117.02719,32.007183],
					[117.03317,32.01168],
					[117.03643,32.013016],
					[117.039,32.012287],
					[117.04172,32.010185],
					[117.048225,32.006866],
					[117.05303,32.000935],
					[117.06069,32.00041],
					[117.06427,31.998894],
					[117.07072,31.993872],
					[117.07512,31.993155],
					[117.07849,31.993582],
					[117.08052,31.991722],
					[117.079285,31.984673],
					[117.075226,31.975792],
					[117.07389,31.97159],
					[117.07398,31.96857],
					[117.07504,31.961998],
					[117.07858,31.95197],
					[117.083565,31.94787],
					[117.086655,31.947807],
					[117.08961,31.946272],
					[117.09432,31.940928],
					[117.09882,31.936533],
					[117.102036,31.93645],
					[117.10192,31.933043],
					[117.10342,31.93272],
					[117.10271,31.928972],
					[117.11041,31.924408],
					[117.10889,31.922724],
					[117.118095,31.91941],
					[117.1271,31.916878],
					[117.13114,31.916962],
					[117.13728,31.912342],
					[117.140594,31.907253],
					[117.14752,31.900408],
					[117.14799,31.897488],
					[117.15147,31.902859],
					[117.154205,31.903236],
					[117.15575,31.904823],
					[117.160706,31.903767],
					[117.16067,31.901281],
					[117.162964,31.900467],
					[117.1646,31.897604],
					[117.166145,31.897547],
					[117.16982,31.895323],
					[117.16962,31.893806],
					[117.166405,31.889643],
					[117.1659,31.884378],
					[117.1678,31.882956],
					[117.168846,31.886185],
					[117.171295,31.886452],
					[117.17083,31.888802],
					[117.17305,31.89224],
					[117.176,31.89251],
					[117.1763,31.895973],
					[117.1758,31.903055],
					[117.17374,31.904186],
					[117.16924,31.908329],
					[117.16517,31.908726],
					[117.16404,31.911167],
					[117.15721,31.912096],
					[117.15593,31.913448],
					[117.156654,31.917664],
					[117.17001,31.916948],
					[117.17868,31.914225],
					[117.181625,31.911453],
					[117.18159,31.909838],
					[117.18579,31.90598],
					[117.18506,31.903748],
					[117.182945,31.902517],
					[117.18342,31.90052],
					[117.17826,31.900454],
					[117.178246,31.894121],
					[117.17995,31.891861],
					[117.18289,31.891926],
					[117.1822,31.890297],
					[117.18349,31.884054],
					[117.18529,31.885382],
					[117.18529,31.88896],
					[117.18773,31.891762],
					[117.19011,31.89088],
					[117.190186,31.889076],
					[117.19231,31.887596],
					[117.19207,31.890635],
					[117.1963,31.890238],
					[117.19872,31.885323],
					[117.19886,31.88238],
					[117.193825,31.883253],
					[117.195335,31.881348],
					[117.19407,31.879597],
					[117.19864,31.879795],
					[117.19817,31.876055],
					[117.19966,31.87555],
					[117.19682,31.87148],
					[117.19895,31.871172],
					[117.196236,31.869053],
					[117.1937,31.868654],
					[117.196495,31.8657],
					[117.198494,31.865894],
					[117.2003,31.868273],
					[117.20296,31.864397],
					[117.20374,31.867908],
					[117.205475,31.870323],
					[117.20517,31.875656],
					[117.20337,31.877419],
					[117.20557,31.884085],
					[117.207535,31.883419],
					[117.20748,31.885872],
					[117.211655,31.884472],
					[117.21312,31.882519],
					[117.2115,31.880194],
					[117.21302,31.878132],
					[117.215225,31.881418],
					[117.21768,31.88205],
					[117.21787,31.88571],
					[117.221634,31.885906],
					[117.230034,31.888557],
					[117.23094,31.891073],
					[117.23358,31.890932],
					[117.236725,31.888573],
					[117.23409,31.885252],
					[117.23405,31.883385],
					[117.23804,31.882156],
					[117.239136,31.883478],
					[117.2378,31.884909],
					[117.24023,31.886145],
					[117.24218,31.883179],
					[117.243454,31.884844],
					[117.24597,31.884153],
					[117.24825,31.880825],
					[117.25155,31.880798],
					[117.25178,31.882809],
					[117.25425,31.880577],
					[117.26008,31.88017],
					[117.26133,31.878494],
					[117.26505,31.877886],
					[117.268425,31.876282],
					[117.27671,31.879269],
					[117.27591,31.871208],
					[117.27688,31.868784],
					[117.275055,31.867662],
					[117.27486,31.86526],
					[117.277275,31.861906],
					[117.28072,31.859295],
					[117.28312,31.859426],
					[117.28269,31.85777],
					[117.27271,31.843967],
					[117.269875,31.834068],
					[117.261925,31.82378],
					[117.25442,31.815144],
					[117.24034,31.796974],
					[117.2503,31.79608],
					[117.25545,31.79394],
					[117.259926,31.796907],
					[117.26923,31.797863],
					[117.27912,31.799921],
					[117.28232,31.798975],
					[117.28542,31.796703],
					[117.28662,31.793465],
					[117.28761,31.78481],
					[117.28774,31.765213],
					[117.28659,31.756006],
					[117.28306,31.745014],
					[117.27656,31.7317],
					[117.26806,31.721416],
					[117.25596,31.710726],
					[117.25054,31.703684],
					[117.24668,31.696344],
					[117.244736,31.690613],
					[117.24254,31.679497]
				]]]
			}
		},
		{
			"type":"Feature", 
			"properties": {
				"adcode": 340111,
				"name": "包河区",
				"center": [117.29234,31.835306],
				"centroid": [117.3391,31.746572],
				"childrenNum": 0,
				"level": "district",
				"subFeatureIndex": 3,
				"acroutes": [100000,340000,340100],
				"parent": {"adcode":340100}
			},
			"geometry": {
				"type": "MultiPolygon",
				"coordinates": [[[
					[117.41718,31.642601],
					[117.30586,31.662054],
					[117.30264,31.664124],
					[117.30338,31.667646],
					[117.301285,31.669384],
					[117.29631,31.668245],
					[117.29244,31.666208],
					[117.28703,31.664349],
					[117.28562,31.662195],
					[117.28548,31.653484],
					[117.282616,31.65088],
					[117.27522,31.652302],
					[117.27102,31.651964],
					[117.26655,31.654896],
					[117.259415,31.65798],
					[117.258255,31.663708],
					[117.25576,31.669144],
					[117.25511,31.67307],
					[117.252426,31.674105],
					[117.248344,31.674137],
					[117.24666,31.67606],
					[117.245865,31.678995],
					[117.24254,31.679497],
					[117.244736,31.690613],
					[117.24668,31.696344],
					[117.25054,31.703684],
					[117.25596,31.710726],
					[117.26806,31.721416],
					[117.27656,31.7317],
					[117.28306,31.745014],
					[117.28659,31.756006],
					[117.28774,31.765213],
					[117.28761,31.78481],
					[117.28662,31.793465],
					[117.28542,31.796703],
					[117.28232,31.798975],
					[117.27912,31.799921],
					[117.26923,31.797863],
					[117.259926,31.796907],
					[117.25545,31.79394],
					[117.2503,31.79608],
					[117.24034,31.796974],
					[117.25442,31.815144],
					[117.261925,31.82378],
					[117.269875,31.834068],
					[117.27271,31.843967],
					[117.28269,31.85777],
					[117.28312,31.859426],
					[117.284294,31.859423],
					[117.29825,31.862408],
					[117.30499,31.865797],
					[117.30661,31.86836],
					[117.31061,31.867006],
					[117.31205,31.864939],
					[117.31117,31.860153],
					[117.31213,31.858004],
					[117.31783,31.85406],
					[117.32333,31.852589],
					[117.32792,31.849508],
					[117.32958,31.849585],
					[117.33217,31.851831],
					[117.33397,31.85215],
					[117.33786,31.84926],
					[117.34039,31.848816],
					[117.34461,31.845976],
					[117.346634,31.840923],
					[117.35267,31.838871],
					[117.356705,31.83627],
					[117.35851,31.834114],
					[117.36301,31.834263],
					[117.367455,31.83088],
					[117.36993,31.830698],
					[117.3744,31.83218],
					[117.3766,31.832003],
					[117.37878,31.830206],
					[117.378876,31.825436],
					[117.381546,31.822613],
					[117.38643,31.822432],
					[117.38752,31.819466],
					[117.3862,31.81397],
					[117.38669,31.811062],
					[117.38835,31.808546],
					[117.39046,31.808052],
					[117.39603,31.808443],
					[117.398895,31.807787],
					[117.40424,31.803967],
					[117.40912,31.801956],
					[117.41246,31.801388],
					[117.417206,31.797834],
					[117.42058,31.792562],
					[117.42649,31.791674],
					[117.43013,31.790396],
					[117.43344,31.785704],
					[117.434364,31.779718],
					[117.43862,31.77619],
					[117.438446,31.769054],
					[117.436134,31.765463],
					[117.43194,31.763184],
					[117.42591,31.760935],
					[117.42352,31.759481],
					[117.42089,31.753563],
					[117.414856,31.745161],
					[117.4108,31.7337],
					[117.407166,31.728186],
					[117.40655,31.726246],
					[117.40798,31.723513],
					[117.41403,31.720339],
					[117.41586,31.718288],
					[117.41969,31.707438],
					[117.419235,31.705887],
					[117.41524,31.699574],
					[117.41557,31.696825],
					[117.41538,31.684557],
					[117.41578,31.672585],
					[117.415504,31.66565],
					[117.41652,31.658655],
					[117.41718,31.642601]
				]]]
			}
		}
	]
};
echarts.registerMap('hefei', data);
var geoCoordMap = {
    '瑶海区': [117.361915,31.925362],
    '庐阳区': [117.25033,31.914777],
    '蜀山区': [117.10854,31.852011],
    '包河区': [117.34234,31.775306]
  
};
var data1 = [
    {
        name: '瑶海区',
        value: 199
    },
    {
        name: '庐阳区',
        value: 39
    },
    {
        name: '蜀山区',
        value: 152
    },
    {
        name: '包河区',
        value: 152
    }
];

// 管网
var guanwang = [
    {//庐阳区
        name: '庐阳区-供水管道',
        value: [117.34234,31.815306, 250],
        type: 'guanwang',
        maintainOrg: '合肥供水总公司',
        checker: '供水管道检查员1',
        lastCheckTime: '2020-01-21 10:30'
    },
    {//蜀山区
        name: '蜀山区-供水管道',
        value: [117.02854,31.902011, 250],
        type: 'guanwang',
        maintainOrg: '合肥供水总公司',
        checker: '供水管道检查员2',
        lastCheckTime: '2020-01-21 15:30'
    }
];

// 绿地
var lvdi = [
    {//庐阳区
        name: '庐阳区-城市绿地',
        value: [117.34234,31.725306, 250],
        type: 'lvdi',
        area: '15000平米',
        lastDealTime: '2020-02-18 10:30'
    },
    {//蜀山区
        name: '蜀山区-城市绿地',
        value: [117.02854,31.822011, 250],
        type: 'lvdi',
        area: '20000平米',
        lastDealTime: '2020-02-18 14:30'
    }
];

// 燃气
var ranqi = [
    {//庐阳区
        name: '庐阳区-天燃气',
        value: [117.30234,31.695306, 250],
        type: 'ranqi',
        maintainOrg: '合肥燃气公司',
        checker: '燃气检查员1',
        lastCheckTime: '2020-01-21 10:30'
    },
    {//蜀山区
        name: '蜀山区-天燃气',
        value: [116.98854,31.862011, 250],
        type: 'ranqi',
        maintainOrg: '蜀山城管局',
        checker: '燃气检查员2',
        lastCheckTime: '2020-01-21 10:30'
    }
];

// 井盖
var jinggai = [
    {//瑶海区
        name: '瑶海区-井盖',
        value: [117.361915,31.885362, 250],
        type: 'jinggai',
        maintainOrg: '瑶海城管局',
        checker: '检查员1',
        lastCheckTime: '2020-01-21 10:30'
    },
    {//蜀山区
        name: '蜀山区-井盖',
        value: [117.21854,31.842011, 250],
        type: 'jinggai',
        maintainOrg: '蜀山交通运输管理局',
        checker: '检查员2',
        lastCheckTime: '2020-01-21 10:30'
    }
];

// 垃圾站
var laji = [
    {//瑶海区
        name: '瑶海区-垃圾站',
        value: [117.371915,31.955362, 250],
        type: 'laji',
        manager: '瑶海垃圾管理员',
        dealType: '压缩型',
        lastDealTime: '2020-02-18 19:30'
    },
    {//庐阳区
        name: '庐阳区-垃圾站',
        value: [117.27033,31.934777, 250],
        type: 'laji',
        manager: '庐阳垃圾管理员',
        dealType: '分解型',
        lastDealTime: '2020-02-18 19:30'
    }
];

// 管理人员
var jiandu = [
    {//瑶海区-1
        name: '瑶海区-监督员(男)',
        value: [117.337915,31.925362, 280],
        type: 'jiandu_nan',
        workTime: '6:30-20:30',
        casualType: '正式工',
        lastLoginTime: '2020-02-18 19:30'
    },
    {//瑶海区-2
        name: '瑶海区-监督员(女)',
        value: [117.347915,32.015362, 280],
        type: 'jiandu_nv',
        workTime: '6:30-20:30',
        casualType: '临时工',
        lastLoginTime: '2020-02-18 12:30'
    },
    {//庐阳区
        name: '庐阳区-监督员(男)',
        value: [117.22833,31.914777, 320],
        type: 'jiandu_nan',
        workTime: '6:30-20:30',
        casualType: '正式工',
        lastLoginTime: '2020-02-18 10:30'
    },
    {//蜀山区-1
        name: '蜀山区-监督员(女)',
        value: [117.08533,31.852011, 320],
        type: 'jiandu_nv',
        workTime: '6:30-20:30',
        casualType: '正式工',
        lastLoginTime: '2020-02-18 11:30'
    },
    {//蜀山区-2
        name: 'xxxx公司',
        value: [116.98533,31.932011, 320],
        type: 'jiandu_nan',
        workTime: '6:30-20:30',
        casualType: '正式工',
        lastLoginTime: '2020-02-18 09:30'
    },
    {//包河区-1
        name: '包河区-监督员(男)',
        value: [117.31934,31.775306, 320],
        type: 'jiandu_nan',
        workTime: '6:30-20:30',
        casualType: '临时工',
        lastLoginTime: '2020-02-18 14:30'
    },
    {//包河区-2
        name: '包河区-监督员(女)',
        value: [117.35934,31.685306, 320],
        type: 'jiandu_nv',
        workTime: '6:30-20:30',
        casualType: '正式工',
        lastLoginTime: '2020-02-18 19:30'
    }
];

var sashui = [
     {//瑶海区
        name: '瑶海区-洒水车',
        value: [117.417915,31.955362, 280],
        type: 'sashui',
        volumn: '3000L',
        workTime: '6:30-17:30',
        intellectType: '传统型',
        driver: '驾驶员1',
        lastRepairTime: '2019-12-01 11:30',
        lastWorkTime: '2020-02-18 12:30'
    },
    {//蜀山区
        name: '蜀山区-洒水车',
        value: [117.12533,31.890011, 320],
        type: 'sashui',
        volumn: '4000L',
        intellectType: '智能型',
        driver: '驾驶员2',
        lastRepairTime: '2020-01-01 11:30',
        lastWorkTime: '2020-02-18 14:30'
    },
];

var max = 480,
    min = 9;
var maxSize4Pin = 100,
    minSize4Pin = 20;

var convertData = function(data) {
    var res = [];
    for (var i = 0; i < data.length; i++) {
        var geoCoord = geoCoordMap[data[i].name];
        if (geoCoord) {
            res.push({
                name: data[i].name,
                value: geoCoord.concat(data[i].value)
            });
        }
    }
    return res;
};
option = {
    //backgroundColor: '#020933',
    backgroundColor: '#0f375f',
    tooltip: {
        trigger: 'item',
        formatter: function(params) {
            return params.name;
            //alert(Object.getOwnPropertyNames(params));
            //return '名称: '+params.name+'<br/>'
        }
    },
    legend: {
        orient: 'vertical',
        id: 1,
        y: 'bottom',
        x: 'right',
        itemWidth: 15,
        data: [
            {
                name: '供水管道',
                icon: iconGD
            },
            {
                name: '城市绿地',
                icon: iconLD
            },
            {
                name: '天燃气',
                icon: iconRQ
            },
            {
                name: '井盖',
                icon: iconJG
            },
            {
                name: '垃圾站',
                icon: iconLJZ
            },
            {
                name: '监督人员',
                icon: iconJD1
            },
			{
                name: '洒水车',
                icon: iconSS
			}
        ],
        textStyle: {
            color: '#fff'
        }
    },
    geo: {
        show: true,
        map: 'hefei',
        label: {
            normal: {
                show: false
            },
            emphasis: {
                show: false,
            }
        },
        zoom: 1.2,
        roam: true,
        itemStyle: {
            normal: {
                areaColor: 'transparent',
                borderColor: '#3fdaff',
                borderWidth: 2,
                shadowColor: 'rgba(63, 218, 255, 0.5)',
                shadowBlur: 30
            },
            emphasis: {
                areaColor: '#2B91B7',
            }
        }
    },
    series: [
        {
            type: 'map',
            map: 'hefei',
            geoIndex: 0,
            aspectScale: 0.75, //长宽比
            showLegendSymbol: false, // 存在legend时显示
            label: {
                normal: {
                    show: false
                },
                emphasis: {
                    show: false,
                    textStyle: {
                        color: '#fff'
                    }
                }
            },
            roam: true,
            itemStyle: {
                normal: {
                    areaColor: '#031525',
                    borderColor: '#3B5077',
                },
                emphasis: {
                    areaColor: '#2B91B7'
                }
            },
            animation: false,
            data: data
        },
        // 图标的位置
        {
            name: 'Top 7',
            type: 'effectScatter',
            coordinateSystem: 'geo',
            data: convertData(data1.sort(function(a, b) {
                return b.value - a.value;
            })),
            symbolSize: 12,
            showEffectOn: 'render',
            rippleEffect: {
                brushType: 'stroke'
            },
            hoverAnimation: true,
            label: {
                normal: {
                    formatter: '{b}',
                    position: 'right',
                    show: true
                }
            },
            itemStyle: {
                normal: {
                    color: '#05C3F9',
                    shadowBlur: 10,
                    shadowColor: '#05C3F9'
                }
            },
            zlevel: 1
        },
        {
            name: '垃圾站',
            type: 'scatter',
            coordinateSystem: 'geo',
            data: laji,
            symbol: iconLJZ,
            symbolSize: function(val) {
                return val[2] / 7.5;
            },
            label: {
                normal: {
                    show: false,
                    formatter: function(params) {
                        // console.log(params);
                        //return params.name;
                        return '垃圾站名称: '+params.name+'<br/>'
                                +'垃圾站类型: '+params.type+'<br/>'
                                +'管理员: '+params.manager+'<br/>'
                                +'上次处理时间: '+params.lastDealTime;
                    },
                    position: 'right',
                    color: '#fff',
                    fontSize: '8'
                },
                emphasis: {
                    show: false
                }
            },
            itemStyle: {
                normal: {
                    color: '#4bbbb2',
                    borderWidth: 2,
                    borderColor: '#b4dccd'
                }
            }
        },
        {
            name: '供水管道',
            type: 'scatter',
            coordinateSystem: 'geo',
            data: guanwang,
            symbol: iconGD,
            symbolSize: function(val) {
                return val[2] / 7.5;
            },
            label: {
                normal: {
                    show: false,
                    formatter: function(params) {
                        // console.log(params);
                        //return params.name;
                        return '管网名称: '+params.name+'<br/>'
                                +'维护单位: '+params.maintainOrg+'<br/>'
                                +'检查员: '+params.checker+'<br/>'
                                +'上次检查时间: '+params.lastCheckTime;
                    },
                    position: 'right',
                    color: '#fff',
                    fontSize: '8'
                },
                emphasis: {
                    show: false
                }
            },
            itemStyle: {
                normal: {
                    color: '#ea6347',
                    borderWidth: 2,
                    borderColor: '#f4b391'
                }
            }
        },
        {
            name: '城市绿地',
            type: 'scatter',
            coordinateSystem: 'geo',
            data: lvdi,
            symbol: iconLD,
            symbolSize: function(val) {
                return val[2] / 7.5;
            },
            label: {
                normal: {
                    show: false,
                    formatter: function(params) {
                        // console.log(params);
                        //return params.name;
                        return '绿地名称: '+params.name+'<br/>'
                                +'绿地面积: '+params.area+'<br/>'
                                +'上次养护时间: '+params.lastDealTime;
                    },
                    position: 'right',
                    color: '#fff',
                    fontSize: '8'
                },
                emphasis: {
                    show: false
                }
            },
            itemStyle: {
                normal: {
                    color: '#00ff00',
                    borderWidth: 2,
                    borderColor: '#55E355'
                }
            }
        },
        {
            name: '天燃气',
            type: 'scatter',
            coordinateSystem: 'geo',
            data: ranqi,
            symbol: iconRQ,
            symbolSize: function(val) {
                return val[2] / 7.5;
            },
            label: {
                normal: {
                    show: false,
                    formatter: function(params) {
                        // console.log(params);
                        //return params.name;
                        return '燃气名称: '+params.name+'<br/>'
                                +'维护单位: '+params.maintainOrg+'<br/>'
                                +'检查员: '+params.checker+'<br/>'
                                +'上次检查时间: '+params.lastCheckTime;
                    },
                    position: 'right',
                    color: '#fff',
                    fontSize: '8'
                },
                emphasis: {
                    show: false
                }
            },
            itemStyle: {
                normal: {
                    color: '#FAFF1A',
                    borderWidth: 2,
                    borderColor: '#E3BC1F'
                }
            }
        },
        {
            name: '井盖',
            type: 'scatter',
            coordinateSystem: 'geo',
            data: jinggai,
            symbol: iconJG,
            symbolSize: function(val) {
                return val[2] / 7.5;
            },
            label: {
                normal: {
                    show: false,
                    formatter: function(params) {
                        // console.log(params);
                        //return params.name;
                        return '井盖名称: '+params.name+'<br/>'
                                +'管理单位: '+params.maintainOrg+'<br/>'
                                +'检查员: '+params.checker+'<br/>'
                                +'上次检查时间: '+params.lastCheckTime;
                    },
                    position: 'right',
                    color: '#fff',
                    fontSize: '8'
                },
                emphasis: {
                    show: false
                }
            },
            itemStyle: {
                normal: {
                    color: '#FF00FF',
                    borderWidth: 2,
                    borderColor: '#D33BD3'
                }
            }
        },
        {
            name: '监督人员',
            type: 'scatter',
            coordinateSystem: 'geo',
            data: jiandu,
            symbol: function(val, param) {
                //console.log(param.data.type);
				if(param.data.type === 'jiandu_nan') {//根据性别展示不同图标
					return iconJD1;
				} else {
				    return iconJD2;
				}
            },
			symbolSize: function(val) {
                return val[2] / 7.5;
            },
            label: {
                normal: {
                    show: true,
                    formatter: function(params) {
                        // console.log(params);
                        //return params.name;
                        return '人员名: '+params.name
                                
                    },
                    position: 'bottom',
                    color: '#fff',
                    fontSize: '12'
                },
                emphasis: {
                    show: false
                }
            },
            itemStyle: {
                normal: {
                    //color: 'green',
                    borderWidth: 2,
                    borderColor: 'white'
                }
            }
        },
		{
            name: '洒水车',
            type: 'scatter',
            coordinateSystem: 'geo',
            data: sashui,
            symbol: iconSS,
            symbolSize: function(val) {
                return val[2] / 7.5;
            },
            label: {
                normal: {
                    show: false,
                    formatter: function(params) {
                        // console.log(params);
                        //return params.name;
                        return '洒水车名称: '+params.name+'<br/>'
                                +'洒水车类型: '+params.intellectType+'<br/>'
                                +'洒水车容量: '+params.volumn+'<br/>'
                                +'作业时间范围: '+params.workTime+'<br/>'
                                +'上次维修时间: '+params.lastRepairTime+'<br/>'
                                +'上次作业时间: '+params.lastWorkTime;
                    },
                    position: 'right',
                    color: '#fff',
                    fontSize: '8'
                },
                emphasis: {
                    show: false
                }
            },
            itemStyle: {
                normal: {
                    //color: 'green',
                    borderWidth: 2,
                    borderColor: 'white'
                }
            }
        }
    ]
};
myChart.setOption(option);

    },
    methods: {

    },
};
</script>

<style scoped lang="scss">

</style>
